import { message } from 'antd'

let showMessage = false
export default function setMessage(msg, type) {
  if (!showMessage) {
    showMessage = true
    message[type](msg, 1, () => {
      showMessage = false
    })
  }
}
